package com.wangwen.wechatmp.dao;


import com.wangwen.wechatmp.model.UserIntegral;
import com.wangwen.wechatmp.model.UserIntegral;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.io.Serializable;
import java.util.List;

public interface UserIntegralDao extends JpaRepository<UserIntegral,Long>, JpaSpecificationExecutor<UserIntegral>, Serializable {
    List<UserIntegral> findByUserId(Long userId);
    List<UserIntegral> findByPhone(String phone);

}
